cmake_minimum_required(VERSION 3.22)
set(project_name windows_md)
project(${project_name})

set(CMAKE_CXX_STANDARD 23)
add_compile_options(/Ot)#优选代码速度
set(lib_path ${CMAKE_CURRENT_SOURCE_DIR}/../lib/)
message("windows行情ctp库静态链接路径:${lib_path}")
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
link_directories(${lib_path})

add_library("${project_name}" #
		SHARED
		windows_md_导入依赖.cpp
		md_wrap.cxx
		)

target_link_libraries(${project_name}
		WinDataCollect.lib
		thosttraderapi_se.lib
		thostmduserapi_se.lib
		)